package org.example.blogserver.dao;

import org.example.blogserver.entity.Article;

import java.util.List;

public interface ArticleDao {

    int addArticle(Article article);

    int deleteArticleById(Long id);

    int updateArticle(Article article);

    Article findArticleById(Long id);

    List<Article> findArticlesByAuthorAccount(String authorAccount);

    List<Article> findArticlesByIsPublic(boolean isPublic);

    int addLike(Long id);

    int addView(Long id);
}
